package com.kdzy.lshy.common.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


@Configuration
@PropertySource(value = "classpath:xuncheng.properties")
public class XunChengConfig {



    @Value("${api_key}")
    private String apiKey;


    @Value("${id_ocr_interface}")
    private String interface_ocr;

    @Value("${id_check_interface}")
    private String interface_check;


    @Bean
    public XunCheng getInstance(){

        XunCheng xuncheng =new XunCheng(apiKey,interface_ocr,interface_check);
        return xuncheng;
    }


}
